package com.siboxuetang.need.util;


import java.util.concurrent.*;

/**
 * Create Time: 2018年03月01日 17:05
 *
 * @author fin
 */
public class ExecutorUtils {

    private static ExecutorService executor =
            new ThreadPoolExecutor(2, 8, 2000, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>());

    public static Future<?> submit(Runnable task) {
        return executor.submit(task);
    }

}
